package com.xwltz.rbac.domain;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @description 人员岗位关联表 bs_member_post
 * @information on version 1.0 be created by @xwltz at 2022-06-17 11:09
 */

@Data
@Accessors(chain = true)
@TableName("bs_member_post")
@ApiModel("人员岗位关联表")
public class MemberPostEntity implements Serializable {

	/**
	 * 关系主键 id;
	 */
	@TableId
	@NotNull(message = "[关系主键]不能为空")
	@ApiModelProperty("关系主键")
	private Long id;

	/**
	 * 人员主键 memberId;
	 */
	@NotNull(message = "[人员主键]不能为空")
	@ApiModelProperty("人员主键")
	private Long memberId;

	/**
	 * 岗位主键 postId;
	 */
	@NotNull(message = "[岗位主键]不能为空")
	@ApiModelProperty("岗位主键")
	private Long postId;

}
